import {Injectable} from '@angular/core';
import {HttpClientService} from '../../shared/services/http-client.service';
import {AppContextService} from '../../shared/services/app-context.service';
import {EntityService, enumAction} from '../../shared/services/entity.service';
import {StorageService} from '../../shared/services/storage.service';
import {ModulePageConfig} from '../config/menu.config';
import {RoleAddEditComponent} from '../component/role-add-edit.component';
import {PDialog} from '../../shared/model/share.model';
import {MenuAddEditComponent} from '../component/menu-add-edit.component';

@Injectable()
export class MenuService extends EntityService {
  test = 'ModuleService';
  constructor(
    private http: HttpClientService,
    private app: AppContextService,
    private storage: StorageService
  ) {
    super( http, app, storage );
    this.pageData = ModulePageConfig;
    this.dialog = {
      add: MenuAddEditComponent,
      edit: MenuAddEditComponent
    };
    this.dialogData = {
      add: new PDialog()
    };
  }

}
